Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix innerHTML property handling in react codegen #1679

Merged
merged 4 commits into from
Feb 7, 2025

Conversation

steve8708
Copy link
Contributor

currently the react bindings_mappers is used for properties too but doesn't differentiate them, so if you hvae a builder node like

{ name: 'Custom Code', options: { code: '<svg>...<svg>' } }

you end up with this react code

<div dangerouselySetInnerHtml={{ __html: <svg>...</svg> }} />

this correctly fixes it to be

<div dangerouselySetInnerHtml={{ __html: "<svg>...</svg>" }} />

@steve8708 steve8708 requested a review from samijaber as a code owner February 7, 2025 01:06
Copy link

changeset-bot bot commented Feb 7, 2025

🦋 Changeset detected

Latest commit: e0bd7b6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@builder.io/mitosis Patch
@builder.io/mitosis-cli Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

nx-cloud bot commented Feb 7, 2025

View your CI Pipeline Execution ↗ for commit e0bd7b6.

Command Status Duration Result
nx e2e @builder.io/e2e-app ✅ Succeeded 1m 6s View ↗
nx run-many --target test ✅ Succeeded 4m 36s View ↗
nx run-many --target build --exclude @builder.i... ✅ Succeeded 3m 45s View ↗
nx build @builder.io/mitosis-site ✅ Succeeded 2m 20s View ↗

☁️ Nx Cloud last updated this comment at 2025-02-07 07:15:11 UTC

@steve8708 steve8708 merged commit b6a01ab into BuilderIO:main Feb 7, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants